package com.heima.media.listener;

import com.heima.media.task.MediaTask;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @author: itheima
 * @create: 2022-03-28 15:46
 */
@Slf4j
@Component
public class AuditListener {

    @Autowired
    private MediaTask mediaTask;

    @PostConstruct
    public void handleMessage(){
        mediaTask.handleMessage();
    }
}
